﻿
<script src="../static/admin/module/xm-select.js"></script>

<form class="layui-form model-form" action="">
    <input name="id" id="id" type="hidden" value="{$info.id|default=0}">
        
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">专利名称：</label>
            <div class="layui-input-inline">
            
                <input name="patent_name" value="{$info['patent_name']|default=''}" lay-verify="" autocomplete="off" placeholder="请输入专利名称" class="layui-input" type="text">
            
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">国家：</label>
            <div class="layui-input-inline">
            
                <input name="country" value="{$info['country']|default='中国'}" lay-verify="required" autocomplete="off" placeholder="请输入国家" class="layui-input" type="text">
            
            </div>
        </div>    


    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">缴费日期:</label>
            <div class="layui-input-inline">
            
                {date:select param="payment_date|发文日期|" value="$info['payment_date']|default=''"}
            
            </div>
        </div>    
<!--         <div class="layui-inline">
            <label class="layui-form-label">第N年:</label>
            <div class="layui-input-inline">
            
                <input placeholder="" class="layui-input" id="" autocomplete="off" value="{$info['pay_year']|default=0}">
            
            </div>
        </div> -->
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">客户名称：</label>
            <div class="layui-input-inline">
            
                <input placeholder="请选择客户" class="layui-input" id="selectInput" autocomplete="off" value="{$info['company_name']|default=''}">
                <input type="hidden" name="company_id" id="company_id" value="{$info['company_id']|default=''}">
            
            </div>
        </div>
<!--         <div class="layui-inline">
            <label class="layui-form-label">合同编号：</label>
            <div class="layui-input-inline">
            
                 <select name="contract_id" id="contract_id" lay-verify="" class="layui-input">
                    {notempty name="contractInfo"}
                    <option value="{$contractInfo.id}">{$contractInfo.contract_no}</option>
                    {/notempty}
                </select>
            
            </div>
        </div> -->


        
        
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">申请人</label>
            <div class="layui-input-inline">
            
                <input name="applicant" value="{$info['applicant']|default=''}" autocomplete="off" placeholder="申请人" class="layui-input" type="text">
            
            </div>
        </div>


 
        <div class="layui-inline">
            <label class="layui-form-label">撰写人</label>
            <div class="layui-input-inline">
            
                {common:select param="conveyancer|0|撰写人|username|id" data="$conveyancerList" value="isset($info['conveyancer']) ? $info['conveyancer'] : 0"}
            
            </div>
        </div>


        <div class="layui-inline" style="width:400px">
            <div name='agent_id' id="demo" class="xm-select-demo" style="width: 300px; margin: 20px;"></div>
        </div>
    </div>

            
    <div class="layui-form-item">
<!--         <div class="layui-inline">
            <label class="layui-form-label">最新状态：</label>
            <div class="layui-input-inline">

                {common:select param="status|0|状态|name|id" data="$statusList" value="isset($info['status']) ? $info['status'] : 0"}

            </div>
        </div> -->
        <div class="layui-inline">
            <label class="layui-form-label">最新状态(新)：</label>
            <div class="layui-input-inline">

                {common:select param="new_status|0|状态|name|id" data="$newStatusList" value="isset($info['new_status']) ? $info['new_status'] : 0"}

            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">专利类型：</label>
            <div class="layui-input-inline">
                
                {common:select param="patent_type|0|专利类型|name|id" data='$patent_type' value="isset($info['patent_type']) ? $info['patent_type'] : 0"}
            
            </div>
        </div>
        
    </div>
            
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">案件状态更新日：</label>
            <div class="layui-input-inline">
            
                {date:select param="update|更新日期|" value="$info['update']|default=''"}
            
            </div>
        </div>
        
    </div>
            
    <div class="layui-form-item">
<!--         <div class="layui-inline">
            <label class="layui-form-label">内部编号：</label>
            <div class="layui-input-inline">
            
                <input name="inside_number" value="{$info['inside_number']|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入内部编号" class="layui-input" type="text">
            
            </div>
        </div> -->
        <div class="layui-inline">
            <label class="layui-form-label">案件号：</label>
            <div class="layui-input-inline">
            
                <input name="number" value="{$info['number']|default=''}" autocomplete="off" placeholder="请输入案件号" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>
            
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">申请日期：</label>
            <div class="layui-input-inline">
            
                {date:select param="apply_date|申请日期|" value="$info['apply_date']|default=''"}
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">发文日期：</label>
            <div class="layui-input-inline">
            
                {date:select param="issue_date|发文日期|" value="$info['issue_date']|default=''"}
            
            </div>
        </div>
        

        <div class="layui-inline">
            <label class="layui-form-label">公告日：</label>
            <div class="layui-input-inline">
            
                {date:select param="announcement_date|发文日期|" value="$info['announcement_date']|default=''"}
            
            </div>
        </div>
    </div>
            
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">案件类型：</label>
            <div class="layui-input-inline">
            
                {common:select param="type|0|案件类型|name|id" data="$patent_an_type" value="isset($info['type']) ? $info['type'] : 0"}
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">补助：</label>
            <div class="layui-input-inline">
            
                <input name="subsidy" value="{$info['subsidy']|default=''}" autocomplete="off" placeholder="请输入补助" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>
            
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">申请号：</label>
            <div class="layui-input-inline">
            
                <input name="application_number" value="{$info['application_number']|default=''}" autocomplete="off" placeholder="请输入申请号" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">同日申请关联卷号：</label>
            <div class="layui-input-inline">
            
                <input name="relation_number" value="{$info['relation_number']|default=''}" autocomplete="off" placeholder="请输入同日申请关联卷号" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">制图员：</label>
            <div class="layui-input-inline">
            
                <input name="cartographer" value="{$info['cartographer']|default=''}" autocomplete="off" placeholder="请输入制图员" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">发明人：</label>
            <div class="layui-input-inline">
            
                <input name="inventor" value="{$info['inventor']|default=''}" autocomplete="off" placeholder="请输入发明人" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">第一发明人ID：</label>
            <div class="layui-input-inline">
            
                <input name="first_inventor_id" value="{$info['first_inventor_id']|default=''}" autocomplete="off" placeholder="请输入第一发明人ID：" class="layui-input" type="text">
            
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">费减比例：</label>
            <div class="layui-input-inline">
            
                <input name="fee_reduction_ratio" value="{$info['fee_reduction_ratio']|default=''}" autocomplete="off" placeholder="请输入费减比例" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">申请费：</label>
            <div class="layui-input-inline">
            
                <input name="application_fee" value="{$info['application_fee']|default=''}" autocomplete="off" placeholder="请输入申请费" class="layui-input" type="text">
            
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">答复绝限：</label>
            <div class="layui-input-inline">
            
                {date:select param="reply_limit|答复绝限|" value="$info['reply_limit']|default=''"}
            
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">特别交待事项：</label>
            <div class="layui-input-inline">
            
                <input name="remark" value="{$info['remark']|default=''}" autocomplete="off" placeholder="请输入特别交待事项" class="layui-input" type="text">
            
            </div>
        </div>
        
    </div>
        
    {widget:submit name="submit|立即保存,close|关闭"}
</form>
<style>
ul.layui-menu.layui-dropdown-menu {
    max-height: 300px;
    width: 200px;
    overflow-x: hidden;
}
</style>



<script>
        xmSelect.render({
        el: '#demo', 
        name:"agent_id",
        tips:'请选择代理人',
        initValue:[{$info['agent_id']}],
        toolbar: {show: true}, // 开启清空 全选
        // 监听下拉框
        on: function (data) { 
                // arr:  当前多选已选中的数据
                var arr = data.arr;
                // change, 此次选择变化的数据,数组
                var change = data.change;
                // isAdd, 此次操作是新增还是删除
                var isAdd = data.isAdd;
                console.log(arr);
            },
        data: {:json_encode($agentList)}


    });

     // $.ajax({
     //        dataType: "json",
     //        type: 'GET',
     //        url:"Ofpatent/getAgent",
     //        success: function (res) {
     //            demo.update({
     //                data: res.data
     //            })
     //        }
     //   });

    
</script>
